import { createApp } from "vue";
import App from "./App.vue";
import router from "router/index";
import store from "store/index";
import _ from "lodash";
import mitt from "mitt";

let app = createApp(App);
// mixin 不需要是Vue的实例，仅要求结构和Vue一致
let mixinApp = {
	created() {
		console.log("全局mixin组件");
	},
};
app.use(router).use(store).mixin(mixinApp).mount("#app");
// 可以定义多个消息总线
app.config.globalProperties.$bus = mitt();
